package com.hjduan.csdn.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2017-08-05-23:34
 */
public class DateUtil {
    public static  String getFormatDate(){
        Date date=new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        // public final String format(Date date)
        String sdate= sdf.format(date);
        return sdate;
    }
}
